//
//  String+Emoji.swift
//  SSEmoticon
//
//  Created by stevenSu on 15/8/6.
//  Copyright © 2015年 stevenSu. All rights reserved.
//

import Foundation

extension String {
    
    static func emojiString(emojiString: String) -> String{
        let scanner = NSScanner(string: emojiString)
        var result: UInt32 = 0
        scanner.scanHexInt(&result)
        let str = String(Character(UnicodeScalar(result)))
        return str
    }
}